import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:shimmer/shimmer.dart';

class MyBookActivityLabelsSkeleton extends StatelessWidget {
  const MyBookActivityLabelsSkeleton({super.key});

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: double.infinity,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            '活动类型',
            style: TextStyle(
              fontSize: 18.sp,
              fontWeight: FontWeight.w600,
            ),
          ),
          15.verticalSpace,
          Shimmer.fromColors(
            baseColor: Theme.of(context).colorScheme.inverseSurface,
            highlightColor: Theme.of(context).colorScheme.onInverseSurface,
            child: Wrap(
                spacing: 8.0,
                children: List.generate(6, (index) {
                  return Padding(
                    padding: EdgeInsets.only( bottom: 5.h),
                    child: Container(
                      height: 40.h,
                      width: 80.w,
                      decoration: BoxDecoration(
                          color: Theme.of(context).colorScheme.inverseSurface,
                          borderRadius: BorderRadius.circular(8.r)),
                      padding:
                          EdgeInsets.symmetric(vertical: 4.h, horizontal: 8.w),
                    ),
                  );
                })),
          )
        ],
      ),
    );
  }
}
